package com.systop.asset.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.systop.asset.mapper.AssetAssignmentsDetailMapper;
import com.systop.asset.entity.AssetAssignmentsDetail;
import com.systop.asset.service.IAssetAssignmentsDetailService;

/**
 * 资产领用详情Service业务层处理
 * 
 * @author mc
 * @date 2025-07-02
 */
@Service
public class AssetAssignmentsDetailServiceImpl implements IAssetAssignmentsDetailService 
{
    @Autowired
    private AssetAssignmentsDetailMapper assetAssignmentsDetailMapper;

    /**
     * 查询资产领用详情
     * 
     * @param id 资产领用详情主键
     * @return 资产领用详情
     */
    @Override
    public AssetAssignmentsDetail selectAssetAssignmentsDetailById(Long id)
    {
        return assetAssignmentsDetailMapper.selectAssetAssignmentsDetailById(id);
    }

    /**
     * 查询资产领用详情列表
     * 
     * @param assetAssignmentsDetail 资产领用详情
     * @return 资产领用详情
     */
    @Override
    public List<AssetAssignmentsDetail> selectAssetAssignmentsDetailList(AssetAssignmentsDetail assetAssignmentsDetail)
    {
        return assetAssignmentsDetailMapper.selectAssetAssignmentsDetailList(assetAssignmentsDetail);
    }

    /**
     * 新增资产领用详情
     * 
     * @param assetAssignmentsDetail 资产领用详情
     * @return 结果
     */
    @Override
    public int insertAssetAssignmentsDetail(AssetAssignmentsDetail assetAssignmentsDetail)
    {
        return assetAssignmentsDetailMapper.insertAssetAssignmentsDetail(assetAssignmentsDetail);
    }

    /**
     * 修改资产领用详情
     * 
     * @param assetAssignmentsDetail 资产领用详情
     * @return 结果
     */
    @Override
    public int updateAssetAssignmentsDetail(AssetAssignmentsDetail assetAssignmentsDetail)
    {
        return assetAssignmentsDetailMapper.updateAssetAssignmentsDetail(assetAssignmentsDetail);
    }

    /**
     * 批量删除资产领用详情
     * 
     * @param ids 需要删除的资产领用详情主键
     * @return 结果
     */
    @Override
    public int deleteAssetAssignmentsDetailByIds(Long[] ids)
    {
        return assetAssignmentsDetailMapper.deleteAssetAssignmentsDetailByIds(ids);
    }

    /**
     * 删除资产领用详情信息
     * 
     * @param id 资产领用详情主键
     * @return 结果
     */
    @Override
    public int deleteAssetAssignmentsDetailById(Long id)
    {
        return assetAssignmentsDetailMapper.deleteAssetAssignmentsDetailById(id);
    }
}
